package com.wondertek.service.service.business;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.wondertek.service.dto.app.req.InstallerPageDeviceReq;
import com.wondertek.service.dto.app.req.InstallerPageRoomReq;
import com.wondertek.service.dto.app.res.*;
import com.wondertek.service.sdk.iotdh.dto.req.SetAccessoryPairReq;
import com.wondertek.service.sdk.iotdh.dto.res.GetAccessoryInfoRes;

import java.util.List;

/**
 * @author wangyu
 */
public interface InstallerService {

    /**
     * 根据操作员userid查询所属站点
     *
     * @return
     */
    List<KvRes> findAllSiteByUserId();


    /**
     * 根据siteId查询设备
     *
     * @param req
     * @return
     */
    Page<AppDevicePageByUserIdRes> pageDeviceBySiteId(InstallerPageDeviceReq req);


    /**
     * 根据deviceId查询分区
     *
     * @param req
     * @return
     */
    Page<InstallerRoomRes> pageRoomByDeviceId(InstallerPageRoomReq req);


    InstallerScanRes scan(String scan);

    GetAccessoryInfoRes accessoryStatus(AccessoryStatusReq req);

    List<DaKvRes> findDaTypes(Integer type);

    void setAccessoryPair(SetAccessoryPairReq req);
}
